id: task-203 title: Show meaningful description in web kanban status: Done assignee:
- '@claude' created_date: '2025-07-25' updated_date: '2025-07-26' labels:
- frontend
- enhancement dependencies: [] priority: medium
Description
Improve the web kanban board's task preview by removing the raw '## Description' header and displaying the actual task description content instead. This enhancement will make the web kanban view more informative and less cluttered.
Related to: https://github.com/MrLesk/Backlog.md/issues/233
Acceptance Criteria
- [x] Raw '## Description' header is stripped from task preview in web kanban view
- [x] Actual task description content is displayed in web kanban cards
- [x] Task preview shows meaningful context (first ~100-150 characters of description)
- [x] Preview text is properly truncated with ellipsis if needed
- [x] Web kanban view maintains clean visual appearance
Implementation Plan
- Locate web kanban card component: Find the component that renders task cards in the web kanban view
- Parse task content: Identify how task content is currently being parsed and displayed
- Strip headers: Implement logic to remove '## Description' header from the content
- Extract description: Parse and extract the actual description text
- Add truncation: Implement text truncation logic with ellipsis for descriptions over 100-150 characters
- Test changes: Verify the web kanban view displays meaningful descriptions correctly
- Clean up: Ensure code follows project standards and passes linting
Implementation Notes
- Modified
TaskCard.tsxcomponent to extract and display meaningful description content - Added
extractDescriptionfunction that uses regex to extract content after the "## Description" header - Added
truncateTextfunction to limit description to 120 characters with ellipsis - The implementation handles edge cases: tasks without Description headers and empty bodies
- All build checks pass successfully (TypeScript, Biome linting, and production build)